/**
 * There are <a href="https://github.com/thinkgem/jeesite">JeeSite</a> code generation
 */
package com.boxin.ims.modules.wechat.dao;

import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Component;

import com.boxin.ims.modules.wechat.entity.SignupConfig;
import com.thinkgem.jeesite.common.persistence.BaseDao;
import com.thinkgem.jeesite.common.persistence.BaseDaoImpl;

/**
 * 连续签到配置
 * @author xiaoqian
 *
*	2014上午9:20:08
 */
public interface SignupConfigDao extends SignupConfigDaoCustom, CrudRepository<SignupConfig, Long> {

	@Modifying
	@Query("update SignupConfig  set delFlag='" + SignupConfig.DEL_FLAG_DELETE + "' where id = ?1")
	public int deleteById(Long id);
	
}

/**
 * DAO自定义接口
 * @author xiaoqian
 *
*	2014上午9:23:01
 */
interface SignupConfigDaoCustom extends BaseDao<SignupConfig> {

}

/**
 * DAO自定义接口实现
 * @author xiaoqian
 *
*	2014上午9:23:12
 */
@Component
class SignupConfigDaoImpl extends BaseDaoImpl<SignupConfig> implements SignupConfigDaoCustom {

}
